package net.kosev.battleships.model;

/**
 * GameListener interface for game events
 * 
 * @author Nikola
 *
 */
public interface GameListener {
	
	/**
	 * Event when player fires
	 * 
	 * @param game	The game instance
	 * @param success	True on fit, false on miss
	 */
	void playerFired(Game game, boolean success);
	
	/**
	 * Event when enemy fires
	 * 
	 * @param game	The game instance
	 * @param success	True on fit, false on miss
	 */
	void enemyFired(Game game, boolean success);
	
	/**
	 * Event on game over
	 * 
	 * @param game	The game instance
	 */
	void gameEnded(Game game);
}

